package demo01;

public class ConcreteBuilder2 implements Builder {
    private Product product=new Product();
    @Override
    public void BuildPartA() {

        product.Add("部件X ");
    }

    @Override
    public void BuildPartB() {
        product.Add("部件y ");
    }

    @Override
    public void BuildPartC() {
        product.Add("部件z ");
    }

    @Override
    public void BuildPartD() {
        product.Add("部件G ");
    }

    @Override
    public Product GetResult() {
        return product;
    }
}
